import request from '@/utils/request'

// 上传xml文本
export const saveXml = (data) => {
  return request({
    url: '/flowable/definition/save',
    method: 'post',
    data: data
  })
}

// 根据用户IDs查询用户
export const getUserListByIDs = (data) => {
  return request({
    url: '/flowable/definition/users/' + `${data}`,
    method: 'post',
  })
}

// 根据岗位IDs查询岗位信息
export const getJobListByIDs = (data) => {
  return request({
    url: '/flowable/definition/jobs/' + `${data}`,
    method: 'post',
  })
}

export const getProcessXmlAndNode = (deployId, proInsId) => {
  return request({
    url: '/flowable/definition/XmlAndNode',
    method: 'get',
    params: { deployId: deployId, proInsId: proInsId }
  })
}

export const getXml = (flowId) => {
  return request({
    url: '/flowable/definition/xml',
    method: 'get',
    params: { flowId: flowId }
  })
}

//编辑流程


